package com.zjl.学习.第08章_配置文件.B_读操作写;

import com.zjl.学习.第08章_配置文件.A_简单配置.MyATasklet;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

import java.nio.charset.Charset;
@SpringBootApplication
@ImportResource(value = {"classpath:batch/bacth_08B0.xml"})
@EnableBatchProcessing//开启spring batch
public class B {
    public static void main(String[] args) {
        System.setProperty("spring.profiles.active","xml");
        SpringApplication.run(B.class, args);
        System.out.println("***********启动完毕**当前编码:" + Charset.defaultCharset().name() + "****************");

    }
}
